xsl中<xsl:template match="@*|node()">里node()是什么意思?

来源:百度知道 编辑:UC知道 时间:2024/08/20 22:16:42
RT
样本是星际2官网的xsl代码:
http://www.starcraft2.com/layout/includes.xsl
(首页http://www.starcraft2.com/调用的是http://www.starcraft2.com/layout/frontpage.xsl,其中有一句<xsl:import href="includes.xsl"/>)
我问的是node()是什么意思,不是xsl:import是什么意思!看清楚哦~

match="E" 匹配元素E
match="*" 匹配任意元素
match="E|F" 匹配元素E和F
match="E/F" 匹配以E为父元素的元素F
match="E//F" 匹配以E为根元素的元素F
match="/" 匹配根节点
match="text()" 匹配文本节点
match="comment()" 匹配注释节点
match="processing-instruction()" 匹配处理指令
match="node()" 匹配除属性节点和根节点外的节点
match="id(test)" 匹配具有唯一ID test的元素
match="E[@CLASS="foo"] 匹配元素E,其类属性为foo
match="E[F]" 匹配元素包含有F元素的E元素

<xsl:import>是导入外部XSL文件,这句是导入同目录下的includes.xsl